<?php

namespace App\Http\Controllers\Test;

use App\Helpers\ResponseData;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class TestController extends Controller
{
    use ResponseData;
    public function push()
    {
       // $fd = 1; // Find fd by userId from a map [userId=>fd].
        /**@var \Swoole\WebSocket\Server $swoole */
      //  $swoole = app('swoole');
       // $success = $swoole->push($fd, 'Push data to fd#1 in Controller');
//        var_dump($success);
        return $this->success(123123);
    }
}
